import http from "../http";

export default {
    upload: {
        url: '/api/upload',
        name: '图片上传',
        call: async function (params = {}) {
            return await http.post(this.url, params)
        }
    },
    imgList: {
        url: '/api/upload',
        name: '图片列表查询',
        call: async function (params = {}) {
            return await http.get(this.url, params)
        }
    },
    videoList: {
        url: '/api/upload/video',
        name: '视频列表查询',
        call: async function (params = {}) {
            return await http.get(this.url, params)
        }
    }
}